<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/layouts/default.xhtml">
    <ui:define name="body">
        <div class="col-sm-7">
            <div id="intro">
                <h2>Welcome to AppFuse Light!</h2>
                <p>
                    <a href="http://appfuse-light.java.net">AppFuse Light</a> is a lightweight version of <a href="http://appfuse.org">AppFuse</a>.
                    The basic AppFuse Light application shows how to do simple
                    <abbr title="Create, Retrieve, Update and Delete">CRUD</abbr> on a database table.
                    To see this feature, click on the button below. <a href="?" onclick="readMore(); return false">Click
                    here</a>
                    to learn more about AppFuse Light.
                </p>

                <p>
                    <button class="btn btn-primary" onclick="location.href='users'">View Demonstration</button>
                </p>

                <h3>Assumptions</h3>
                <ul>
                    <li>It's 2015, you should be thinking about HTML5, Mobile and REST.</li>
                    <li>JRebel should be used to allow quick reloading of classes.</li>
                    <li>Conventions are more important than configurability.</li>
                </ul>
            </div>
        </div>
        <div id="readmore" style="display:none">
            <h3>Introduction to AppFuse Light</h3>
            <p>
                AppFuse Light is designed to show Java Web Developers how to start
                a bare-bones webapp using a <a href="http://www.springframework.org">
                Spring</a>-managed middle-tier backend and <a href="http://www.hibernate.org">
                Hibernate</a> for persistence. In addition to Hibernate, you can also use JPA.
            </p>
            <p>
                You can use many different web frameworks for your UI, including:
            </p>
            <ul>
                <li><a href="http://primefaces.org/">JSF/PrimeFaces</a></li>
                <li><a href="http://springframework.org">Spring MVC</a></li>
                <li><a href="http://stripesframework.org">Stripes</a></li>
                <li><a href="http://struts.apache.org/2.x/">Struts 2</a></li>
                <li><a href="http://tapestry.apache.org">Tapestry</a></li>
                <li><a href="http://wicket.apache.org/">Wicket</a></li>
            </ul>
            <p>
                In addition, there's a couple of extras for Spring MVC, including FreeMarker and
                Spring MVC versions. All versions are available using
                <a href="http://static.appfuse.org/light/archetypes.html">Maven Archetypes</a>.
            </p>
            <p>
                Since no server configuration is required, this application should
                this application should work with any Servlet 3.0 servlet engine.
            </p>
            <p>
                <button class="btn btn-default" onclick="readMore();">&#171; Back</button>
            </p>
        </div>
        <div class="col-sm-3">
            <div id="branding">
                <a href="http://appfuse.org" title="AppFuse - eliminating project startup time">
                    <img src="#{request.contextPath}/images/powered-by-appfuse.gif" width="203" height="75" alt="AppFuse"/></a>
            </div>
            <h3>Resources</h3>

            <p>The following is a list of resources that will make <a href="http://springframework.org">Spring</a> infinitely easier to use.</p>

            <ul class="glassList">
                <li><a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/">Spring Documentation</a></li>
                <li><a href="http://docs.spring.io/spring/docs/current/javadoc-api/">Spring API</a></li>
                <li><a href="http://www.amazon.com/s/ref=nb_ss?url=search-alias%3Daps&amp;field-keywords=spring+framework">Spring Books</a></li>
                <li><a href="http://stackoverflow.com/questions/tagged/spring">Spring on Stack Overflow</a></li>
            </ul>

        </div>

        <script type="text/javascript">
            function readMore() {
                var main = document.getElementById("intro");
                var more = document.getElementById("readmore");
                if (main.style.display == "") {
                    main.style.display = "none";
                    more.style.display = "";
                } else {
                    more.style.display = "none";
                    main.style.display = "";
                }
            }
        </script>
    </ui:define>
</ui:composition>
</html>
